package theUseOfArrays;

import java.util.Arrays;

/**
 * @ClassName theUseOfArrays.ArrayMemoryGraph03
 * @Description 数组内存图代码3
 * @Author 李明忠
 * @Date 2025/5/19 21:16
 * @Version 1.0
 */
public class ArrayMemoryGraph03 {
    public static void fun(int[] arr) {
        arr = new int[]{10,20,30,40,50};
    }
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        fun(arr);
        System.out.println(Arrays.toString(arr));//结果：[1, 2, 3, 4, 5]
    }
}
